/**
 * 
 */
package com.zmht.specedu.rescue.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.zmht.specedu.frame.model.PageInfoModel;
import com.zmht.specedu.rescue.web.form.TeachBookForm;
import com.zmht.specedu.vo.Soundstudy;
import com.zmht.specedu.vo.TeachBookWithData;
import com.zmht.specedu.vo.Teachbook;

/**
 * @author Administrator
 * 
 */
public interface ITeachBookService {
	void saveBook(HttpServletRequest request, Teachbook book,TeachBookForm tForm) throws Exception;
	
	void updateBook(HttpServletRequest request, Teachbook book,TeachBookForm tForm) throws Exception;

	PageInfoModel queryBookTypePaginationInfo(PageInfoModel model,
			Soundstudy queryModel) throws Exception;
	
	PageInfoModel queryBookPaginationInfo(PageInfoModel model,
			Teachbook queryModel) throws Exception;
	
	void saveOrUpdateBookType(Soundstudy bookType) throws Exception;

	void deleteById(Class<?> type, Integer id) throws Exception;

	List<Soundstudy> queryAllBookType() throws Exception;
	
	List<Soundstudy> queryAllSoundStudyBookType() throws Exception;
	
	void deleteBookById(Integer id) throws Exception;
	
	Teachbook queryBookById(Integer id)  throws Exception;
	
	TeachBookWithData queryBookWithDataById(Integer id) throws Exception;
	
	void createBook(TeachBookWithData book) throws Exception;
	
	void updateBook(TeachBookWithData book) throws Exception;
}
